From 8121c60d3d25bd1f43a4e044f14033fd118184c7 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 11 Nov 2008 18:07:25 +0000 Subject: [PATCH] =?utf8?q?Bug=20553765=20=E2=80=93=20Add=20orientation=20A?= =?utf8?q?PI=20to=20GtkRange?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-11-11 Michael Natterer Bug 553765 – Add orientation API to GtkRange * gtk/gtkrange.[ch]: implement the GtkOrientable interface. Add evil code that makes sure that the stepper_detail and slider_detail set in GtkRangeClass continue to work with the hacked subclasses below. * gtk/gtkscale.[ch]: swallow all code from GtkHScale and GtkVScale and add gtk_scale_new() and gtk_scale_new_with_range() which take a GtkOrientation argument. Set slider_detail to "Xscale" so above evil code works. * gtk/gtkscrollbar.[ch]: add gtk_scrollbar_new() which takes a GtkOrientation argument. Set stepper_detail to "Xscrollbar" so above evil code works. * gtk/gtkhscale.c * gtk/gtkvscale.c * gtk/gtkhscrollbar.c * gtk/gtkvscrollbar.c: remove all code except the constructor and call gtk_orientable_set_orientation() in init(). * gtk/gtk.symbols: changed accordingly. svn path=/trunk/; revision=21780 --- gtk/gtk.symbols | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 1908cd3f76..58d38f175e 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -3421,6 +3421,7 @@ gtk_scale_get_draw_value gtk_scale_get_layout gtk_scale_get_layout_offsets gtk_scale_get_type G_GNUC_CONST +gtk_scale_new gtk_scale_get_value_pos gtk_scale_set_digits gtk_scale_set_draw_value @@ -3448,6 +3449,7 @@ gtk_scale_button_get_popup #if IN_HEADER(__GTK_SCROLLBAR_H__) #if IN_FILE(__GTK_SCROLLBAR_C__) gtk_scrollbar_get_type G_GNUC_CONST +gtk_scrollbar_new #endif #endif -- 2.30.2